-- Viral Resistance - T-Engine 4 Module
-- Copyright (C) 2010 Mikolai Fajer
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
--
-- Mikolai Fajer "yufra"
-- mfajer@gmail.com

name = "Orders from Headquarters"
desc = function(self, who)
	local desc = {}
	if self:isCompleted("first contact") then
		desc[#desc+1] = "#LIGHT_GREEN#* You established contact with headquarters."
	elseif self:isStatus(engine.Quest.PENDING, "first contact") then
		desc[#desc+1] = "#SLATE#* The Chief of Medicine mentioned an emergency phone in his office."
	end
	if who:isQuestStatus("power_loss", engine.Quest.DONE) then
		desc[#desc+1] = "#LIGHT_GREEN#* You restored power to the hospital."
	elseif self:isStatus(engine.Quest.PENDING, "restore power") then
		desc[#desc+1] = "#SLATE#* Restore power to the hospital."
	end
	if self:isCompleted("collect sample") then
		desc[#desc+1] = "#LIGHT_GREEN#* You retrieved a blood sample."
	elseif self:isStatus(engine.Quest.PENDING, "collect sample") then
		desc[#desc+1] = "#SLATE#* You need to collect an infected blood sample."
	end
	if self:isCompleted("analyze sample") then
		desc[#desc+1] = "#LIGHT_GREEN#* You analyzed the infected blood sample."
	elseif self:isStatus(engine.Quest.PENDING, "analyze sample") then
		desc[#desc+1] = "#SLATE#* You need to analyze the infected blood sample."
	end
	return table.concat(desc, "\n")
end